home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000348_amos-request@svcs1.digex.net_Sat Sep 27 22:46:02 1997.msg < prev    next >
Text File  |  1997-10-01  |  4KB  |  71 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id WAA03927
  3.     for <mcox@access.digex.net>; Sat, 27 Sep 1997 22:46:01 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id UAA22378
  6.     for amos-out; Sat, 27 Sep 1997 20:37:52 -0400 (EDT)
  7. Received: from mail4.access.digex.net (mail4.access.digex.net [205.197.247.2])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id UAA22375
  9.     for <amos-list@svcs1.digex.net>; Sat, 27 Sep 1997 20:37:51 -0400 (EDT)
  10. Received: from leary.huron.net (root@leary.huron.net [205.150.207.2])
  11.     by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id UAA20988
  12.     for <amos-list@access.digex.net>; Sat, 27 Sep 1997 20:37:50 -0400 (EDT)
  13. Received: from golden.net (ppp51-ts2-kw.huron.net [205.150.207.100])
  14.     by leary.huron.net (8.8.5/8.8.5) with SMTP id UAA11409
  15.     for <amos-list@access.digex.net>; Sat, 27 Sep 1997 20:34:35 -0400
  16. From: "Mr. Giark To You" <joehick@golden.net>
  17. To: AMOS List <amos-list@access.digex.net>
  18. Date: Sat, 27 Sep 1997 20:36:07 -0500
  19. Message-ID: <yam7209.375.5470544@huron.net>
  20. In-Reply-To: <yam7209.1753.2014823272@mail.agonet.it>
  21. X-Mailer: YAM 1.3.3 - Amiga Mailer by Marcel Beck
  22. Subject: Re: GUI kablooie
  23. MIME-Version: 1.0
  24. Content-Type: text/plain
  25. Status: O
  26. X-Status: 
  27.  
  28. On 27-Sep-97, Pietro Ghizzoni wrote:
  29. >>Now, I have a new problem. Using Tcp Read gives me far too much data at once
  30. >>and in the wrong format as well. For IRC I really need a Tcp Read Line$
  31. >>command that would only read from the port the next LINE, not # of
  32. >>characters.
  33. >>not only does it give too much info, it seems to strip the CR-LF that
  34. >>indicates the end of an IRC line, making it impossible to parse the IRC
  35. >>commands properly.
  36. >Mmmmhhh.... probably your're using the command in the wrong way. If your
  37. >BOT works using the TCP: device, it *must* works with the GUI Extension too.
  38.  
  39. That's what I thought too.
  40.  
  41. >It isn't a handicap the possibility to specify the # of bytes to
  42. >download... if i remember correctly the maximum length of a IRC string is
  43. >256 chars (right?)... and so for example Tcp Read(1,Start(10),256) is the
  44. >best choice.
  45. >When the IRC server will send you the string, you must simply read it:
  46. >A=Gui Wait
  47. >IF A=-9 : Rem TCP/IP datas received
  48. >   IRC$=Peek$(Tcp Buffer,Tcp Code)
  49. >EndIf
  50. >Tcp Code indicates the number of bytes received (i.e the string length). It
  51. >isn't neccesary 256... in this case 256 is the maximum number of bytes to
  52. >download... if only 100 bytes are available, only 100 bytes will be
  53. >downloaded ;)
  54.  
  55. But, if the IRC sends me 5 lines before I read the port, it mushes them all
  56. together. Maybe I have something backwards. I'll try it again, and if the
  57. error continues, I'll send you the code to look at.
  58.  
  59. Well met and godspeed,
  60.                       Giark
  61.                                            joehick@golden.net
  62.                              http://www.golden.net/~joehick/fbn/index.html
  63.      ______  ______    _____  .------------------------------------------.
  64.     / ____/ / __  /   / ___ \ !     AMOS games, utilities, demos, etc.   !
  65.    / /__   / /_/ /   / /  / / !                                          !
  66.   / ___/  / ___  |  / /  / /  !       CyberSpace BBS (519)579-0072       !
  67.  / /     / /__/ /  / /  / /   !     on A2000 060/50MHz (519)579-0173     !
  68. /_/     /______/  /_/  /_/    !                                          !
  69.    Fly By Nite Videe-Oh!      !  FBN Amiga 500 020 14MHz 1C/5F RAM 3.1OS !
  70.          IAPA Member          `------------------------------------------'
  71.